{% extends "base_sondage.html" %}
{% load i18n %}

	{% block header %}
		<script type="text/javascript" src="{{STATIC_URL}}javascript/jquery.js"></script>
		<script type="text/javascript" src="{{STATIC_URL}}jquery.blockUI.js"></script>
		<script type="text/javascript" src="{{STATIC_URL}}javascript/script_attente.js"></script>
		<script type="text/javascript" src="{{STATIC_URL}}javascript/script_multirep.js"></script>
    {% endblock %}
	
	{% block titre %}{% trans "Créer le sondage"%}{% endblock %}	
	
	{% block menu %}	
		<ul id="navigation">
		  <li> <img src="{{STATIC_URL}}images/26.png" alt=""/>{% trans "Civilité" %}</li>
		  <li> <img src="{{STATIC_URL}}images/27.png" alt=""/>{% trans "Invités" %}</li>
		  <li> <img src="{{STATIC_URL}}images/31.png" alt=""/>{% trans "Questions" %}</li>
		  <li> <img src="{{STATIC_URL}}images/29.png" alt=""/>{% trans "Réponse" %}</li>
		  <li> <img src="{{STATIC_URL}}images/30.png" alt=""/>{% trans "Résultat" %}</li>
		</ul>
	{% endblock %}		
			
	{% block content %}
		<form action="" method="POST">
			{% csrf_token %}
			{{ formset.management_form }}
			<div>
				{% for form in formset.forms %}
				<div class="item">
	      			{% trans "Question" %} : {{ form.question }}
	      			<br/>
					{% trans "Réponses ( une par ligne )" %} :
					<br/>
					{{ form.reponses }}
					<a class="delete" title="Supprimer cet élément" href="#"><img src="{{ STATIC_URL }}images/delete.png"></img>
				</div>
				<p><a id="add" title="Ajouter un élément" href="#"><img src="{{ STATIC_URL }}images/add.png"></img>{% trans "Ajouter un élément" %}</a></p>
				{% endfor %}
			</div>
	        <caption ALIGN=bottom><input type=submit class=submit value=Valider></caption>
        </form>
    {% endblock %}